package com.example.admin.yuejian21.Model;





import com.example.admin.yuejian21.Bean.Contest;
import com.example.admin.yuejian21.Service.Service;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Lee1 on 2017/10/19.
 */

public class ContestModel {
    private Retrofit retrofit;
    public ContestModel(){
        retrofit = new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .build();
    }
    public Call<List<Contest>> getcontestList(String s){
        Service Service = retrofit.create(Service.class);
        return Service.getContestList();
    }
//    public Call<ActivityDetail> getactivityDetail(String id){
//        Service Service = retrofit.create(Service.class);
//        return Service.getActivityDetail("um22daeuj1859g6bljcjruk9g0","activity",id);
//    }

}
